#include <stdio.h>
#include <ctype.h>

int main() {
    int letter = 0, digit = 0, other = 0, ch;

    while (ch = getchar(), ch != '\n') {
        if (isalpha(ch))        /*若ch是字母*/
            letter++;
        else if (isdigit(ch))    /*若ch是数字*/
            digit++;
        else                 /*其他字符*/
            other++;
    }
    printf("字母：%d\n数字：%d\n其他：%d\n", letter, digit, other);

}